<template>
<div id="root">
  <h2>欢迎来到{{name}}学习</h2>
  <input type=""text placeholder="按下回车提示输入" @keydown.enter="showInfo">
</div>
</template>

<script>
export default {
  name: "JianPanShiJian",
  data() {
    return {
      name: '北京大学',
    }
  },
  methods: {
    showInfo(e) {
      console.log(e.target.value)
    }
  }
}
</script>

<style scoped>

</style>
